package cn.com.headfree.mouldshow.service.impl;

import cn.com.headfree.entity.TEmpBaseInfo;
import cn.com.headfree.mouldshow.dao.TEmpBaseInfoDao;
import cn.com.headfree.mouldshow.service.TEmpBaseInfoService;
import cn.com.headfree.vo.simple.EmpBaseInfoVo;
import org.springframework.stereotype.Service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

/**
 * 人资基本信息 服务实现
 * @author smyl
 * @date 2020-06-23 15:59:50
 */
@Service("tEmpBaseInfoService")
@Transactional
public class TEmpBaseInfoServiceImpl implements TEmpBaseInfoService {

	@Autowired
	private TEmpBaseInfoDao tEmpBaseInfoDao;


	@Override
	public List<TEmpBaseInfo> findByErpNo(String erpNo) {
		return tEmpBaseInfoDao.findByErpNo(erpNo);
	}

	@Override
	public List<EmpBaseInfoVo> findByBaseorgId(String deptId) throws Exception{
		return tEmpBaseInfoDao.findByBaseorgId(deptId);
	}
}
